package com.guardchina.framework.util.exception.login;

import com.guardchina.framework.util.constant.ResultStatus;
import com.guardchina.framework.util.exception.BusinessException;

/**
 * 描述：token需要刷新异常
 *
 * @author lwb
 * @date 2019/3/19 15:34
 */
public class TokenRefreshException extends BusinessException {

    private TokenRefreshException(String message) {
        super(ResultStatus.TOKEN_NEED_REFRESH_EXCEPTION, message);
    }

    public static TokenRefreshException error(String message) {
        return new TokenRefreshException(message);
    }

    public static TokenRefreshException error() {
        return new TokenRefreshException("token需要刷新");
    }
}
